import request from '@/api/request';
import {getTeamId, getEnterpriseId} from "@/plugin/auth";

// 获取状态列表
export const fetchStatusList = async () => {
  const params = {
    enterprise_id:getEnterpriseId()
  }
  return request.get('/status',params);
};
export const createStatus = async (data) => {
  return request.post('/status', data);
};
// 更新状态
export const updateStatus = async (id, newStatus) => {
  return request.put('/status/'+id, newStatus);
};

// 删除状态
export const deleteStatus = async (id:number) => {
  return request.delete('/status/'+id);
};